package com.aliyun.inventory.server.dao.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 商品库存实体
 *
 * 
 * @date 2024/11/26
 */
@Data
@TableName("tech_solution_inventory")
public class InventoryDO implements Serializable {

    private static final long serialVersionUID = -8855041103295697585L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private Date gmtCreate;

    /**
     * 商品id
     */
    @TableField("product_id")
    private Long productId;

    /**
     * 库存总数量
     */
    @TableField("total_quantity")
    private Integer totalQuantity;

    /**
     * 剩余库存
     */
    @TableField("remain_quantity")
    private Integer remainQuantity;

    /**
     * 每个用户最大购买量
     */
    @TableField("max_purchase_per_user")
    private Integer maxPurchasePerUser;
}